{if condition="(isset($uname))"}
<a href="/index/index/login.html">你好 {:$uname}! </a> <a style="margin-left: 10px" href="/index/Login/logout">退出</a>
{else /}
<a href="/index/index/login.html">登录</a>丨<a href="/index/index/register.html">注册</a>
{/if}